|
|
@@ -35,7 +35,7 @@
|
|
|
kwsys_ios::cout << "Error in: " << #x << kwsys_ios::endl; \
|
|
|
}
|
|
|
|
|
|
-#define CHE(x,y,res) if ( strcmp(x,y) ) \
|
|
|
+#define CHE(x,y,res) if ( x && y && strcmp(x,y) ) \
|
|
|
{ \
|
|
|
res = 1; \
|
|
|
kwsys_ios::cout << "Error, " << x << " != " << y << kwsys_ios::endl; \
|
|
|
@@ -90,10 +90,14 @@ int main(int, char**)
|
|
|
IFT(reg.SetValue("TestSubkeyWithVeryLongInFactSoLongItsHardToImagineAnybodyWouldReallyDoItLongName", "TestKey1", longStringWithNewLines), res);
|
|
|
IFT(reg.ReadValue("TestSubkeyWithVeryLongInFactSoLongItsHardToImagineAnybodyWouldReallyDoItLongName", "TestKey1", &buffer), res);
|
|
|
CHE(buffer, longStringWithNewLines, res);
|
|
|
+ IFT(reg.DeleteValue("TestSubkeyWithVeryLongInFactSoLongItsHardToImagineAnybodyWouldReallyDoItLongName", "TestKey1"), res);
|
|
|
+ IFNT(reg.ReadValue("TestSubkeyWithVeryLongInFactSoLongItsHardToImagineAnybodyWouldReallyDoItLongName", "TestKey1", &buffer), res);
|
|
|
|
|
|
IFT(reg.SetValue("TestSubkeyWith = EqualSignChar", "TestKey = 1", "Some value"), res);
|
|
|
IFT(reg.ReadValue("TestSubkeyWith = EqualSignChar", "TestKey = 1", &buffer), res);
|
|
|
CHE(buffer, "Some value", res);
|
|
|
+ IFT(reg.DeleteValue("TestSubkeyWith = EqualSignChar", "TestKey = 1"), res);
|
|
|
+ IFNT(reg.ReadValue("TestSubkeyWith = EqualSignChar", "TestKey = 1", &buffer), res);
|
|
|
|
|
|
if ( res )
|
|
|
{
|