]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Locally define vgPlain_scrcmp in 2 unit tests
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Fri, 11 Nov 2016 14:26:54 +0000 (14:26 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Fri, 11 Nov 2016 14:26:54 +0000 (14:26 +0000)
Humph, this should have been part of :
   16122 Add VG_(strIsMemberXA) in pub_tool_xarray.h
which means that between 16122 and this revision, these 2 unit tests
will (very probably) not compile.
That will make bissect not easy :(

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16126

drd/tests/unit_bitmap.c
memcheck/tests/unit_oset.c

index 6e8064a7015bbbdf34cb9d000b4a149a5f804d79..5778753a6520da063df4644da50a92c0c403fa1d 100644 (file)
@@ -44,6 +44,8 @@ void  VG_(assert_fail)(Bool isCore, const HChar* assertion, const HChar* file,
   abort();
 }
 
+Int VG_(strcmp)( const HChar* s1, const HChar* s2 )
+{ return strcmp(s1, s2); }
 void* VG_(memset)(void *s, Int c, SizeT sz)
 { return memset(s, c, sz); }
 void* VG_(memcpy)(void *d, const void *s, SizeT sz)
index 6b82445a502c57da47a377df9b35cdaf6296b621..eb7b34fc70a4b9f0b87c6e47b5f5dc7805a2935b 100644 (file)
@@ -28,6 +28,7 @@
 #define vgPlain_memset                 memset
 #define vgPlain_memcpy                 memcpy
 #define vgPlain_memmove                memmove
+#define vgPlain_strcmp                 strcmp
 
 // Crudely replace some functions (in m_xarray.c, but not needed for
 // this unit test) by (hopefully) failing asserts.