test-func.c: Also test value of __func__.
authorSimon Josefsson <simon@josefsson.org>
Thu, 5 Nov 2009 13:38:10 +0000 (14:38 +0100)
committerSimon Josefsson <simon@josefsson.org>
Thu, 5 Nov 2009 13:38:10 +0000 (14:38 +0100)
ChangeLog
tests/test-func.c

index c9b6b12e2137051902a408c95862deb75cb66a68..36c74dd4cf403dcb1c77979b9a73a0d752cc6fd0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-11-05  Simon Josefsson  <simon@josefsson.org>
+
+       * tests/test-func.c: Also test value of __func__.
+
 2009-11-05  Simon Josefsson  <simon@josefsson.org>
 
        * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
index 8a3c465e73f6a39abe83a3a0e9d731889ab85080..3c2de3cf7e79ab4ae02b6b31aa759917360bc5c8 100644 (file)
@@ -45,5 +45,8 @@ main ()
   ASSERT (strlen (__func__) + 1 == sizeof __func__);
 #endif
 
+  assert (strcmp (__func__, "main") == 0
+         || strcmp (__func__, "<unknown function>") == 0);
+
   return 0;
 }