Browse Source

tests/loader-cross.sh.in: fail when no executable is provided

Nathalie Furmento 10 years ago
parent
commit
d66a619369
2 changed files with 9 additions and 1 deletions
  1. 3 1
      include/starpu_deprecated_api.h
  2. 6 0
      tests/loader-cross.sh.in

+ 3 - 1
include/starpu_deprecated_api.h

@@ -1,7 +1,7 @@
 /* StarPU --- Runtime system for heterogeneous multicore architectures.
  *
  * Copyright (C) 2010-2013  Université de Bordeaux
- * Copyright (C) 2010, 2011, 2012, 2013  Centre National de la Recherche Scientifique
+ * Copyright (C) 2010, 2011, 2012, 2013, 2014  Centre National de la Recherche Scientifique
  *
  * StarPU is free software; you can redistribute it and/or modify
  * it under the terms of the GNU Lesser General Public License as published by
@@ -23,6 +23,8 @@ extern "C"
 {
 #endif
 
+#warning Rename function starpu_trace_user_event() as starpu_fxt_trace_user_event()
+
 #if defined(STARPU_USE_DEPRECATED_API) || defined(STARPU_USE_DEPRECATED_ONE_ZERO_API)
 #warning Your application is using deprecated types. You may want to update to use the latest API, by using tools/dev/rename.sh.
 #endif /* defined(STARPU_USE_DEPRECATED_API) || defined(STARPU_USE_DEPRECATED_ONE_ZERO_API) */

+ 6 - 0
tests/loader-cross.sh.in

@@ -3,6 +3,12 @@
 top_srcdir="@top_srcdir@"
 top_builddir="@top_builddir@"
 
+if test -z "$1"
+then
+    echo "[Error] Syntax: $0 <executable>"
+    exit 1
+fi
+
 NATIVE=${PWD/\/build_mic\//\/build_host\/}
 DIR="$(dirname "$1")"
 FILE="$(basename "$1")"