From: Jani Nikula Date: Mon, 3 Dec 2012 22:54:52 +0000 (+0200) Subject: [PATCH] test: fix an evident copy-paste error in argument parsing test X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=d9278b2ad043e08b65428ab01500db9989322673;p=notmuch-archives.git [PATCH] test: fix an evident copy-paste error in argument parsing test --- diff --git a/35/99332ce69538223828fe2448f08742d59cae16 b/35/99332ce69538223828fe2448f08742d59cae16 new file mode 100644 index 000000000..deb3fdf8a --- /dev/null +++ b/35/99332ce69538223828fe2448f08742d59cae16 @@ -0,0 +1,96 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 66F72431FBC + for ; Mon, 3 Dec 2012 14:54:57 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id pAYZnMuWaE4g for ; + Mon, 3 Dec 2012 14:54:57 -0800 (PST) +Received: from mail-la0-f53.google.com (mail-la0-f53.google.com + [209.85.215.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id C6EEF431FAE + for ; Mon, 3 Dec 2012 14:54:56 -0800 (PST) +Received: by mail-la0-f53.google.com with SMTP id w12so2839577lag.26 + for ; Mon, 03 Dec 2012 14:54:55 -0800 (PST) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=google.com; s=20120113; + h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; + bh=Fm+OKwhVrzTJEpBR3NrGlB5zYc090NXSbVJl7g2XIAA=; + b=ZsMRBFo/+aIatkGkAIraSkl90wamoDYLf8GE8gPg9g1EaLJgFQf8dIkyVt+ELv4Dxa + 6n0JOaFtCs1B6Luo2g5nm2kPV9LqcWibbjfG3lc0VAxlXT1a6ee0Fi/R9prs9/7lzoLb + xZfG6iqoZwG2XVQsID5YdHetL/EJ31bZUrdf6lai83LI5U/ip4vOEIUTziHLY0MTPs/Z + GJ387+9dVSjh8qOuFqlhLSxooXuwsSphT9gHhrnyumYQ8/O0OM/EwfHpsI4CfJtCvbbg + OuLa3idbweumSd8axtQEZ48QXf/lpWzNFEqZgzQuUyv6un6f4LRd+gNj647xCJp+Be+V + YwWA== +Received: by 10.152.147.100 with SMTP id tj4mr10917943lab.42.1354575295322; + Mon, 03 Dec 2012 14:54:55 -0800 (PST) +Received: from localhost (dsl-hkibrasgw4-fe51df00-27.dhcp.inet.fi. + [80.223.81.27]) + by mx.google.com with ESMTPS id hu6sm5899276lab.13.2012.12.03.14.54.53 + (version=SSLv3 cipher=OTHER); Mon, 03 Dec 2012 14:54:54 -0800 (PST) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH] test: fix an evident copy-paste error in argument parsing + test +Date: Tue, 4 Dec 2012 00:54:52 +0200 +Message-Id: <1354575292-8680-1-git-send-email-jani@nikula.org> +X-Mailer: git-send-email 1.7.10.4 +X-Gm-Message-State: + ALoCoQkPoGwryPUj+5sgT5fl0JgJDMX8lbCkg468tnVzsQYwrA3XH1jX4gSfghZhR2+pivSULA6n +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Mon, 03 Dec 2012 22:54:57 -0000 + +--- + test/arg-test.c | 2 +- + test/argument-parsing | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/test/arg-test.c b/test/arg-test.c +index adc56e3..6c49eac 100644 +--- a/test/arg-test.c ++++ b/test/arg-test.c +@@ -41,7 +41,7 @@ int main(int argc, char **argv){ + printf("positional arg 1 %s\n", pos_arg1); + + if (pos_arg2) +- printf("positional arg 2 %s\n", pos_arg1); ++ printf("positional arg 2 %s\n", pos_arg2); + + + for ( ; opt_index < argc ; opt_index ++) { +diff --git a/test/argument-parsing b/test/argument-parsing +index 672de0b..94e9087 100755 +--- a/test/argument-parsing ++++ b/test/argument-parsing +@@ -9,7 +9,7 @@ keyword 1 + int 7 + string foo + positional arg 1 pos1 +-positional arg 2 pos1 ++positional arg 2 pos2 + EOF + test_expect_equal_file OUTPUT EXPECTED + +-- +1.7.10.4 +