Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2446)

Unified Diff: experimental/tools/tests/libs_present_test.cc

Issue 10928195: First round of dead file removal (Closed) Base URL: https://github.com/samclegg/nativeclient-sdk.git@master
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « experimental/tools/tests/libs_present_stub.cc ('k') | experimental/tools/tests/nacl.scons » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/tools/tests/libs_present_test.cc
diff --git a/experimental/tools/tests/libs_present_test.cc b/experimental/tools/tests/libs_present_test.cc
deleted file mode 100644
index eeeafa324bb1454e1cdf632bb12cbb22b5234c5e..0000000000000000000000000000000000000000
--- a/experimental/tools/tests/libs_present_test.cc
+++ /dev/null
@@ -1,68 +0,0 @@
-/*
- * Copyright (c) 2011 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-// This file tests for the presence of libraries and .o files in the SDK
-// it does not actually execute any of the library code.
-
-
-#include "libs_present_stub.h"
-
-// This list should include all exported header files (directly or indirectly)
-// to ensure they were properly included in the SDK.
-#include <math.h>
-#include <pthread.h>
-#include <stdio.h>
-#include <unistd.h>
-#include <iostream>
-#include <nacl/nacl_imc.h>
-#include <nacl/nacl_srpc.h>
-
-
-// Dummy variables used to hold return values.
-bool bool_value;
-double double_value;
-pthread_t pthread_t_value;
-const char* char_ptr_value;
-char char_array_value[128];
-
-static void TestLibsPresent() {
- // This code should invoke one method from each exported library to
- // ensure the library was built correctly.
-
- // Test that libm is present.
- if (run_tests)
- double_value = sin(0.0);
-
- // Test that libimc is present.
- if (run_tests)
- nacl::Close(nacl::kInvalidHandle);
-
- // Test that libpthread is present.
- if (run_tests)
- pthread_t_value = pthread_self();
-
- // Test that libsrpc is present.
- if (run_tests)
- char_ptr_value = NaClSrpcErrorString(NACL_SRPC_RESULT_OK);
-
- // Test that libunimpl is present.
- if (run_tests)
- char_ptr_value = getcwd(char_array_value, sizeof(char_array_value));
-}
-
-int main(int argc, char **argv) {
- // EH tests that libsupc++ is present.
- try {
- TestLibsPresent();
- } catch(...) {
- // iotream tests that libstdc++ is present.
- std::cout << "FAIL" << std::endl;
- return 1;
- }
- // printf tests that libc is present.
- printf("PASS\n");
- return 0;
-}
« no previous file with comments | « experimental/tools/tests/libs_present_stub.cc ('k') | experimental/tools/tests/nacl.scons » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698