|
From: <sv...@va...> - 2016-11-11 14:27:00
|
Author: philippe
Date: Fri Nov 11 14:26:54 2016
New Revision: 16126
Log:
Locally define vgPlain_scrcmp in 2 unit tests
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 :(
Modified:
trunk/drd/tests/unit_bitmap.c
trunk/memcheck/tests/unit_oset.c
Modified: trunk/drd/tests/unit_bitmap.c
==============================================================================
--- trunk/drd/tests/unit_bitmap.c (original)
+++ trunk/drd/tests/unit_bitmap.c Fri Nov 11 14:26:54 2016
@@ -44,6 +44,8 @@
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)
Modified: trunk/memcheck/tests/unit_oset.c
==============================================================================
--- trunk/memcheck/tests/unit_oset.c (original)
+++ trunk/memcheck/tests/unit_oset.c Fri Nov 11 14:26:54 2016
@@ -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.
|