Revision: 75733
          http://sourceforge.net/p/brlcad/code/75733
Author:   starseeker
Date:     2020-05-07 18:37:26 +0000 (Thu, 07 May 2020)
Log Message:
-----------
Remove testing code

Modified Paths:
--------------
    brlcad/branches/bioh/include/bu/app.h
    brlcad/branches/bioh/src/libbu/tests/CMakeLists.txt

Removed Paths:
-------------
    brlcad/branches/bioh/src/libbu/tests/app.c

Modified: brlcad/branches/bioh/include/bu/app.h
===================================================================
--- brlcad/branches/bioh/include/bu/app.h       2020-05-07 18:34:58 UTC (rev 
75732)
+++ brlcad/branches/bioh/include/bu/app.h       2020-05-07 18:37:26 UTC (rev 
75733)
@@ -83,9 +83,6 @@
  */
 BU_EXPORT extern const char *bu_getprogname(void);
 
-/* Expose this temporarily for testing - NOT public API!!! */
-BU_EXPORT extern const char *_bu_progname_raw(void);
-
 /**
  * Set the name of the running application.  This isn't strictly
  * necessary on platforms that have an intrinsic method for tracking

Modified: brlcad/branches/bioh/src/libbu/tests/CMakeLists.txt
===================================================================
--- brlcad/branches/bioh/src/libbu/tests/CMakeLists.txt 2020-05-07 18:34:58 UTC 
(rev 75732)
+++ brlcad/branches/bioh/src/libbu/tests/CMakeLists.txt 2020-05-07 18:37:26 UTC 
(rev 75733)
@@ -753,8 +753,6 @@
 
 CMAKEFILES(CMakeLists.txt)
 
-BRLCAD_ADDEXEC(bu_app app.c libbu TEST)
-
 # Local Variables:
 # tab-width: 8
 # mode: cmake

Deleted: brlcad/branches/bioh/src/libbu/tests/app.c
===================================================================
--- brlcad/branches/bioh/src/libbu/tests/app.c  2020-05-07 18:34:58 UTC (rev 
75732)
+++ brlcad/branches/bioh/src/libbu/tests/app.c  2020-05-07 18:37:26 UTC (rev 
75733)
@@ -1,74 +0,0 @@
-/*                         A P P . C
- * BRL-CAD
- *
- * Copyright (c) 2011-2020 United States Government as represented by
- * the U.S. Army Research Laboratory.
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public License
- * version 2.1 as published by the Free Software Foundation.
- *
- * This library is distributed in the hope that it will be useful, but
- * WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this file; see the file named COPYING for more
- * information.
- */
-
-#include "common.h"
-
-#include <stdio.h>
-#include <string.h>
-
-#include "bu.h"
-
-int
-main(int ac, char *av[])
-{
-    if (ac != 1)
-       bu_exit(1, "Usage: %s\n", av[0]);
-
-    bu_setprogname(av[0]);
-
-    const char *pname = _bu_progname_raw();
-
-    if (pname[0] == '.') {
-       char iwd[MAXPATHLEN];
-       char fullpath[MAXPATHLEN];
-       struct bu_vls apath = BU_VLS_INIT_ZERO;
-       bu_getiwd(iwd, MAXPATHLEN);
-       bu_vls_sprintf(&apath, "%s%c%s", iwd, BU_DIR_SEPARATOR, pname);
-       if (!bu_file_realpath(bu_vls_cstr(&apath), fullpath)) {
-           bu_log("Unable to resolve local path: %s\n", bu_vls_cstr(&apath));
-           return -1;
-       }
-       bu_vls_free(&apath);
-       if (!bu_file_exists(fullpath, NULL)) {
-           bu_log("Resolved to path %s, which does not exist\n", fullpath);
-           return -1;
-       }
-       bu_log("%s -> %s\n", pname, fullpath);
-    } else {
-       if (!bu_file_exists(pname, NULL)) {
-           bu_log("Invalid av[0] entry: %s\n", pname);
-           return -1;
-       }
-       bu_log("%s -> %s\n", pname, pname);
-    }
-
-    return 0;
-}
-
-
-/*
- * Local Variables:
- * mode: C
- * tab-width: 8
- * indent-tabs-mode: t
- * c-file-style: "stroustrup"
- * End:
- * ex: shiftwidth=4 tabstop=8
- */

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to