aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/core/common_runtime/session_test.cc
blob: 82b5d7ffb0cea2cb46555590b63b1d017ee283d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include "tensorflow/core/public/session.h"

#include "tensorflow/core/public/session_options.h"
#include <gtest/gtest.h>

namespace tensorflow {
namespace {

TEST(SessionTest, InvalidTargetReturnsNull) {
  SessionOptions options;
  options.target = "invalid target";

  EXPECT_EQ(nullptr, tensorflow::NewSession(options));
}

}  // namespace
}  // namespace tensorflow