Revision: 51703
http://brlcad.svn.sourceforge.net/brlcad/?rev=51703&view=rev
Author: starseeker
Date: 2012-07-29 18:58:16 +0000 (Sun, 29 Jul 2012)
Log Message:
-----------
if I'm not mistaken, (BRL-CAD) is the expected result here, not (null)...
Modified Paths:
--------------
brlcad/trunk/src/libbu/tests/bu_progname.c
Modified: brlcad/trunk/src/libbu/tests/bu_progname.c
===================================================================
--- brlcad/trunk/src/libbu/tests/bu_progname.c 2012-07-29 18:17:14 UTC (rev
51702)
+++ brlcad/trunk/src/libbu/tests/bu_progname.c 2012-07-29 18:58:16 UTC (rev
51703)
@@ -46,7 +46,7 @@
/* CASE 0: getting unset name */
label = "CASE 0";
res = bu_getprogname();
- ans = NULL;
+ ans = "(BRL-CAD)";
if (BU_STR_EQUAL(res, ans ? ans : "") || BU_STR_EQUAL(res,
bu_basename(av[0]))) {
printf("%s: %24s -> %24s [PASSED]\n", label, "unset", res);
@@ -58,7 +58,7 @@
/* CASE 1: try again unset */
label = "CASE 1";
res = bu_getprogname();
- ans = NULL;
+ ans = "(BRL-CAD)";
if (BU_STR_EQUAL(res, ans ? ans : "") || BU_STR_EQUAL(res,
bu_basename(av[0]))) {
printf("%s: %24s -> %24s [PASSED]\n", label, "unset#2", res);
@@ -71,7 +71,7 @@
label = "CASE 2";
bu_setprogname(NULL);
res = bu_getprogname();
- ans = NULL;
+ ans = "(BRL-CAD)";
if (BU_STR_EQUAL(res, ans ? ans : "") || BU_STR_EQUAL(res,
bu_basename(av[0]))) {
printf("%s: %24s -> %24s [PASSED]\n", label, "NULL", res);
@@ -120,7 +120,7 @@
pass++;
}
- /* CASE 5: set 2x full path, then get */
+ /* CASE 6: set 2x full path, then get */
label = "CASE 6";
bu_setprogname(bu_argv0_full_path());
bu_setprogname("/monkey/see/monkey/do");
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits