< prev index next >

test/hotspot/jtreg/vmTestbase/nsk/jvmti/SetSystemProperty/setsysprop002/setsysprop002.cpp

Print this page
rev 52100 : 8212082: Remove the NSK_CPP_STUB macros for remaining vmTestbase/jvmti/[sS]*
Summary:
Reviewed-by:

*** 74,85 **** const char name[], const char* expectedValue) { int success = NSK_TRUE; char* value = NULL; NSK_DISPLAY1(" property: %s\n", name); ! if (!NSK_JVMTI_VERIFY( ! NSK_CPP_STUB3(GetSystemProperty, jvmti, name, &value))) { return NSK_FALSE; } NSK_DISPLAY1(" value: \"%s\"\n", nsk_null_string(value)); if (value == NULL --- 74,84 ---- const char name[], const char* expectedValue) { int success = NSK_TRUE; char* value = NULL; NSK_DISPLAY1(" property: %s\n", name); ! if (!NSK_JVMTI_VERIFY(jvmti->GetSystemProperty(name, &value))) { return NSK_FALSE; } NSK_DISPLAY1(" value: \"%s\"\n", nsk_null_string(value)); if (value == NULL
*** 91,102 **** phase, name, nsk_null_string(value), expectedValue); success = NSK_FALSE; } ! if (!NSK_JVMTI_VERIFY( ! NSK_CPP_STUB2(Deallocate, jvmti, (unsigned char*)value))) { success = NSK_FALSE; } return success; } --- 90,100 ---- phase, name, nsk_null_string(value), expectedValue); success = NSK_FALSE; } ! if (!NSK_JVMTI_VERIFY(jvmti->Deallocate((unsigned char*)value))) { success = NSK_FALSE; } return success; }
*** 118,135 **** for (i = 0; i < PROPERTIES_COUNT; i++) { NSK_DISPLAY1(" property: %s\n", propDescList[i].name); NSK_DISPLAY1(" value: \"%s\"\n", propDescList[i].values[step]); if (step > 1) { if (!NSK_JVMTI_VERIFY_CODE(JVMTI_ERROR_WRONG_PHASE, ! NSK_CPP_STUB3(SetSystemProperty, jvmti, ! propDescList[i].name, propDescList[i].values[step]))) { success = NSK_FALSE; } } else { if (!NSK_JVMTI_VERIFY( ! NSK_CPP_STUB3(SetSystemProperty, jvmti, ! propDescList[i].name, propDescList[i].values[step]))) { success = NSK_FALSE; } } } --- 116,131 ---- for (i = 0; i < PROPERTIES_COUNT; i++) { NSK_DISPLAY1(" property: %s\n", propDescList[i].name); NSK_DISPLAY1(" value: \"%s\"\n", propDescList[i].values[step]); if (step > 1) { if (!NSK_JVMTI_VERIFY_CODE(JVMTI_ERROR_WRONG_PHASE, ! jvmti->SetSystemProperty(propDescList[i].name, propDescList[i].values[step]))) { success = NSK_FALSE; } } else { if (!NSK_JVMTI_VERIFY( ! jvmti->SetSystemProperty(propDescList[i].name, propDescList[i].values[step]))) { success = NSK_FALSE; } } }
< prev index next >